import request from '@/utils/request'

// 查询实例列表
export function listProcess(query) {
  return request({
    url: '/activiti/process/list',
    method: 'get',
    params: query
  })
}
// 查询审批历史列表
export function listHistory(query) {
  return request({
    url: '/activiti/process/listHistory',
   method: 'get',
   params: query
  })
}

// 删除流程实例
export function removeProcInstance(procInstId) {
  return request({
    url: '/procinst/'+procInstId,
    method: 'delete'
  })
}
